﻿<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="utf-8">
    <title>表信息</title>
    <link rel="shortcut icon" href="/common/images/favicon.ico" type="image/x-icon" />      
	<script type="text/javascript" src="/common/scripts/dynamicImportJs.js"></script>
 	<script>
		loadScript("/common/scripts/jquery-min.js");
		loadScript("/lib/easyUI-1.4.5/easyui.js");
		loadScript("/common/scripts/common.js");
		loadScript("/watchDog/database/scripts/tableInfo.js");
 	</script>
	
	<style>
		.title{
			font-family:"宋体";
			font-size:18px;
			font-style:normal;
			background:#CCFF00;
			text-align:center;
			border:1px solid #000000;
		}
		
		.content{
			font-family:"宋体";
			font-size:18px;
			font-style:normal;
			background:#FFFFCC;
			text-align:center;
			border:1px solid #00FFFF;
		}
		.lightContent{
			background:#FFFFFF;
		}
		.lightContentSel{
			background:#CCFF99;
		}
		.foodWindow{
		background:#FFFFFF;
		}
		.foodWindowTd{
			border:solid 1px #99FFFF;
			
		}
		.titleTd{
			background-color:#99FF33;
			height:40px;
		 	text-align:center;
			border:1px solid #CCCCCC;
		}
		.contentTd{
			text-align:center;
			vertical-align:middle;
			border:solid 1px #99FFFF;
		}
		
		
		.windowBtn{
			margin:3px;
			background:#048fb0;
			vertical-align: middle; 
			display:inline-block; 
			padding:0 10px; 
			border:none; border:0;border-radius:2px; 
			text-align:center;  
			color:#fff; cursor:pointer; 
			font-size:14px;
			height:26px;

			color:#fff !important;
		}
		
		.menuBtn{
			margin-bottom:3px;
			background:#048fb0;
			vertical-align: middle; 
			display:inline-block; 
			padding:0 10px;
			margin:3px;
			border:none; border:0;border-radius:2px; 
			text-align:center;  
			color:#fff; cursor:pointer; 
			font-size:14px;
			height:26px;
			width:50px;
			color:#fff !important;
		}
		
		.menuDiv{
			display:inline;
			width:250px;
			margin:5px;
		}
		
		.addMenuDiv{
		    width:16px;
			height:90px;
			margin:3px;
			vertical-align:middle;
			border:none; border:0;border-radius:2px; 
			background:#048fb0;
			
			margin-bottom:3px;
			display:inline-block; 
			padding:0 10px;
			text-align:center;  
			color:#fff; cursor:pointer; 
			font-size:14px;
			color:#fff !important;
		}
		
		.btn-edit {
			background: url('/bfs/images/icon-pic.png') no-repeat center;
			background-position:-122px -10px;
			height: 24px;
			width:24px;
			line-height: 22px;
			padding: 2px 14px;
			cursor: pointer;
		}
		
		.menuTd{
			border-left:1px solid #000000;
			border-top:1px solid #000000;
		}
		
		.fieldLen
		{
			width:50px;
		}
		
		.fieldCanBeNull
		{
			width:40px;
		}
	</style>
  </head>

  <body bgcolor="#FFFFFF" >
  <table bgcolor="#FFFFFF" width="99%" height="100%" cellpadding="0" cellspacing="0" >
 	
	<tr>
		<td align="right" height="40px">表驱动:	</td>
		<td id="tableDriver"></td>
	</tr>
	<tr>
		<td align="right" height="40px">创建时间:	</td>
		<td id="tableCreateTime"></td>
	</tr>
	<tr>
		<td align="left" height="40px">表字段:	</td>
		<td align="right">
			<input type="button" style="height:40px; width:200px; font-size:16px;" value="新增" onClick="tableInfo.addField()"  />
		</td>
	</tr>
	<tr>
		<td  height="40px" colspan="2">
			<table width="100%" height="100%" style="border:1px solid #CCFF66">
				<tr class="title"><td width="50px">序号</td><td>字段名</td><td>数据类型</td>
					<td>长度</td>
					<td>默认值</td>
					<td>可否为空</td>
					<td>描述</td>
					<td>操作</td>
				</tr>
				<tbody id="fieldList" class="content"></tbody>
				<tr><td colspan="8" align="right">
					<input type="button" style=" width:120px; height:40px; font-size:16px;" value="设置" onClick="tableInfo.setTableFiels()" />
				</td>
				</tr>
			</table>
		</td>		
	</tr>

  </table>
	
	
</body>
  
  <script>
		$(document).ready(function() {
			tableInfo.init();
		});

    </script>
</html>
